package com.example.picturestorage.service;

import com.example.picturestorage.bean.TestBean;
import com.example.picturestorage.mapper.TestMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class TestServiceImpl implements TestService{

    @Autowired
    private TestMapper testMapper;


    @Override
    public void add(String name) {
        testMapper.add(name);
    }

    @Override
    public void add2(List<String> list) {
        testMapper.add2(list);
    }

    @Override
    public int insertTestBean(TestBean testBean) {
        return testMapper.insertTestBean(testBean);
    }
}
